package test;

import java.security.SecureRandom;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentSkipListMap;

public class BNL {

    public static void main(String[] args) {
        for (int j = 0; j < 1000; j++) {
            int cnt = (int) 1e4;
            int max = 0;
            int zero = 0;
            for (int i = 0; i < cnt; i++) {
                int v = get();
                if (v == 0) zero++;
                max = Math.max(max, v);
            }
            System.out.println(max);
            System.out.println(zero);
        }
    }

    public static int get() {
        SecureRandom r = new SecureRandom();
        int i = 0;
        while (r.nextBoolean()) {
            i++;
        }
        return i;
    }
}
